package com.igor.reporting.pages.location;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.igor.reporting.dao.location.LocationDAO;
import com.igor.reporting.entities.location.Location;

public class Add {

	@Inject
	private LocationDAO LocationDAO;
	@Property
	private Location location;

	Object onSuccess() {
		LocationDAO.add(location);
		return Browse.class;
	}

}
